default:
	@echo "Usage:"
	@echo "   p4c:       Practica 4 sin optimizaciones"
	@echo "   openmp:    Practica 4 con openmp"
	@echo "   openmpsse: Practica 4 con openmp y sse"


all: p4c openmp openmpsse

p4c: practica4.c
	gcc -o p4 -O3 practica4.c

openmp: practica4_openmp.c
	gcc -o p4_op -O3 -fopenmp practica4_openmp.c

openmpsse: practica4_openmpsse.c
	gcc -o p4_opsse -O3 -fopenmp -march=nocona -msse3 practica4_openmpsse.c

clean:
	-rm p4 p4_op p4_opsse
